<template>
  <div>
    <div class="row">
      <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
      <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
    </div>


  </div>
</template>

<script>
export default {
  data () {
    return {
      msg: 'Welcome to Your Vue.js App'
    }
  },
  created() {
    // getSite()
  },
  methods: {
  // 注册
  getSite() {
    this.$axios.get('/website/siteList').then(({status,data})=>{
        if(status===200){
          if(data&&data.code === 1){
            console.log('this.middleList', data.data.favorite)
            this.middleList = data.data.favorite

            // setTimeout(()=>{
            //   this.$message.success('取出成功');
            // }, 2300)
          } else if(data&&data.code === 0) {
            this.middleList = data.data
          } else {
            // this.error=data.msg
            // this.$message.error(data.msg);
          }
        }else{
          this.error=`服务器出错`
        }
      })
    }
  }  
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1, h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
